<?php
require_once("includes/upload_class.php");
$Upload_Path= "C:\AppServ\www\cma\\files\\";
$max_size = 1024*1024*250; // the max. size for uploading
$my_upload = new file_upload;
$my_upload->upload_dir = $Upload_Path; // "files" is the folder for the uploaded files (you have to create this folder)
$my_upload->extensions = array(".jpg",".jpeg", ".png", ".gif","pdf"); // specify the allowed extensions here
// $my_upload->extensions = "de"; // use this to switch the messages into an other language (translate first!!!)
$my_upload->max_length_filename = 100; // change this value to fit your field length in your database (standard 100)
$my_upload->rename_file = true;
$my_upload->replace ='y';
$my_upload->the_temp_file = $_FILES['source']['tmp_name'];
$my_upload->the_file = $_FILES['source']['name'];
$my_upload->http_error = $_FILES['source']['error'];



?>